Optimal. Leaf size=37 \[ -\frac {1}{5} i \tan ^5(x)+\frac {\tan ^4(x)}{4}-\frac {1}{3} i \tan ^3(x)+\frac {\tan ^2(x)}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3516, 848, 75} \[ -\frac {1}{5} i \tan ^5(x)+\frac {\tan ^4(x)}{4}-\frac {1}{3} i \tan ^3(x)+\frac {\tan ^2(x)}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 75
Rule 848
Rule 3516
Rubi steps
\begin {align*} \int \frac {\sec ^6(x)}{i+\cot (x)} \, dx &=-\operatorname {Subst}\left (\int \frac {\left (1+x^2\right )^2}{x^6 (i+x)} \, dx,x,\cot (x)\right )\\ &=-\operatorname {Subst}\left (\int \frac {(-i+x)^2 (i+x)}{x^6} \, dx,x,\cot (x)\right )\\ &=-\operatorname {Subst}\left (\int \left (-\frac {i}{x^6}+\frac {1}{x^5}-\frac {i}{x^4}+\frac {1}{x^3}\right ) \, dx,x,\cot (x)\right )\\ &=\frac {\tan ^2(x)}{2}-\frac {1}{3} i \tan ^3(x)+\frac {\tan ^4(x)}{4}-\frac {1}{5} i \tan ^5(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 26, normalized size = 0.70 \[ \frac {1}{60} \sec ^4(x) \left (15-4 i \sin ^2(x) (\cos (2 x)+4) \tan (x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.80, size = 48, normalized size = 1.30 \[ \frac {4 \, {\left (20 \, e^{\left (4 i \, x\right )} - 5 \, e^{\left (2 i \, x\right )} - 1\right )}}{15 \, {\left (e^{\left (10 i \, x\right )} + 5 \, e^{\left (8 i \, x\right )} + 10 \, e^{\left (6 i \, x\right )} + 10 \, e^{\left (4 i \, x\right )} + 5 \, e^{\left (2 i \, x\right )} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.62, size = 25, normalized size = 0.68 \[ -\frac {1}{5} i \, \tan \relax (x)^{5} + \frac {1}{4} \, \tan \relax (x)^{4} - \frac {1}{3} i \, \tan \relax (x)^{3} + \frac {1}{2} \, \tan \relax (x)^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.35, size = 28, normalized size = 0.76 \[ \frac {\left (\tan ^{2}\relax (x )\right )}{2}-\frac {i \left (\tan ^{3}\relax (x )\right )}{3}+\frac {\left (\tan ^{4}\relax (x )\right )}{4}-\frac {i \left (\tan ^{5}\relax (x )\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.86, size = 25, normalized size = 0.68 \[ -\frac {1}{5} i \, \tan \relax (x)^{5} + \frac {1}{4} \, \tan \relax (x)^{4} - \frac {1}{3} i \, \tan \relax (x)^{3} + \frac {1}{2} \, \tan \relax (x)^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.21, size = 27, normalized size = 0.73 \[ -\frac {{\mathrm {tan}\relax (x)}^5\,1{}\mathrm {i}}{5}+\frac {{\mathrm {tan}\relax (x)}^4}{4}-\frac {{\mathrm {tan}\relax (x)}^3\,1{}\mathrm {i}}{3}+\frac {{\mathrm {tan}\relax (x)}^2}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{6}{\relax (x )}}{\cot {\relax (x )} + i}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________